@import '~antd/es/style/themes/default.less';

.tags-view-container {
  position: absolute;
  top: 50px;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 40px;
  line-height: 40px;
  background: #fff;
  border-top: 1px solid #d8dce5;
  border-bottom: 1px solid #d8dce5;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.12), 0 0 3px 0 rgba(0, 0, 0, 0.04);
}

.tags-view-container__srcollbar {
  background: #fff;
}

.tags-view-item {
  position: relative;
  display: inline-block;
  height: 26px;
  // margin-top: 4px;
  margin-left: 10px;
  padding: 0 8px;
  color: #495060;
  font-size: 12px;
  line-height: 26px;
  background: #fff;
  border: 1px solid #d8dce5;
  border-radius: 4px;
  transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);

  &.active {
    color: #fff;
    background-color: #1890ff;

    &::before {
      position: relative;
      display: inline-block;
      width: 8px;
      height: 8px;
      margin-right: 2px;
      background: #fff;
      border-radius: 50%;
      content: '';
    }

    .close-icon {
      color: #fff;
    }
  }

  .close-icon {
    position: relative;
    box-sizing: border-box;
    padding: 4px;
    color: #495060;
    font-size: 10px;
    border-radius: 50%;
    transform: scale(0.8);

    &:hover {
      color: #fff;
      background-color: #b4bccc;
    }
  }
}

.contextmenu {
  position: fixed;
  z-index: 100;
  display: inline-block;
  margin: 0;
  padding: 5px 0;
  color: #333;
  font-weight: 400;
  font-size: 12px;
  list-style-type: none;
  background: #fff;
  border-radius: 4px;
  box-shadow: 2px 2px 3px 0 rgba(0, 0, 0, 0.3);

  li {
    margin: 0;
    padding: 7px 16px;
    line-height: 20px;
    cursor: pointer;

    &:hover {
      background: #eee;
    }
  }
}
